<template>
  <div>
    <!-- 文章头部 -->
    <hmheader title="我的收藏"
      ><span
        slot="left"
        class="iconfont iconjiantou2"
        @click="$router.back()"
      ></span
    ></hmheader>
    <!--收藏的文章 -->
    <articleBlock
      v-for="item in details"
      :key="item.id"
      :post="item"
    ></articleBlock>
  </div>
</template>

<script>
import hmheader from "@/components/hmheader";
import articleBlock from "@/components/articleBlock";
import { userSatr } from "@/apis/user";
export default {
  data() {
    return {
      details: {},
    };
  },
  // 注册组件
  components: {
    hmheader,
    articleBlock,
  },
  //
  async activated() {
    let res = await userSatr();
    console.log(res.data.data);
    //
    this.details = res.data.data;
    console.log(this.details);
  },
};
</script>

<style>
</style>